const ADD_TODO = 'ADD_TODO'
const DELETE_TODO = 'DELETE_TODO'
const EDIT_TODO = 'EDIT_TODO'
const COMPLETE_TODO = 'COMPLETE_TODO'
const COMPLETE_ALL = 'COMPLETE_ALL'
const CLEAR_COMPLETED = 'CLEAR_COMPLETED'

export function addTodo(text) {
	return {type:ADD_TODO,text}
}

export function deleteTodo(id){
	return {type:DELETE_TODO,id}
}

export function editTodo(id,text){
	return {type:EDIT_TODO,id,text}
}

export function completeTodo(id){
	return {type:COMPLETE_TODO,id}
}

export function completeAll(){
	return {type:COMPLETE_ALL}
}

export function clearComplted(){
	return { type:CLEAR_COMPLETED }
}